import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import Components from "unplugin-vue-components/vite"
import { AntDesignVueResolver } from "unplugin-vue-components/resolvers"
import vueDevTools from 'vite-plugin-vue-devtools'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    vueDevTools(),
    Components({
      dts: "src/components.d.ts",
      resolvers: [AntDesignVueResolver({ resolveIcons: true, importStyle: false })],
    }),
  ],
  base: "./",
  server: {
    port: 3000
  },
})
